package com.example.springboot.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * Description:Admin实体类
 *
 * @Author 马钰涵
 * @Create 2023/8/4 23:38
 * @Version 1.0
 */
@Data  //生成模板代码：getter、setter
public class Admin {
    private Integer id;
    private String username;
    private String password;
    private String phone;
    private String email;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;   //创建时间

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;   //更新时间

    private Boolean status;   //状态：0(false)-停用；1(true)-启用
}